/**
 * Created by zhaocong on 2016/7/12.
 * 注册信息
 */
define(['jquery', 'timepicker'], function (require, exports, module) {
  "use strict";
  var cc = window.cc || {};
  cc.Register = function () {
    var self = this;
    self.bindEvents = function () {

    };

    /* 时间选择插件 */
    self.datatime = function () {
      $('.form_datetime').datetimepicker({
        language: 'zh-CN',
        weekStart: 1,
        todayBtn: 1,
        autoclose: 1,
        todayHighlight: 1,
        startView: 2,
        forceParse: 0,
        showMeridian: 1,
        minView: 2,
        format: "yyyy-mm-dd"
      });
    };

    /**
     * 默认方法
     * @private
     */
    self._init = (function () {
      self.bindEvents();
      self.datatime();
      console.log('Register is OK (づ￣3￣)づ');
    })();
  }

  module.exports = cc.Register();
});